<?php

namespace app\admin\validate;

use think\Validate;


class Article extends Validate
{
    protected $rule = [
        'uid' => 'require',
        'title' => 'require|max:50',
        'abstract' => 'require|max:200',
        'images' => 'require|array',
        'content' => 'require|array'
    ];
    protected $message = [
        'uid.require' => '用户ID获取失败',
        'title.max' => '标题最多不能超过50个字符',
        'abstract.max' => '标题最多不能超过200个字符',
        'images.require' => '封面图片不能为空',
        'content.require' => '内容图片不能为空'
    ];
}